package com.example.remote;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component(value = "inventoryServiceFallback")
@Slf4j
public class InventoryServiceFallback implements InventoryService {

    public String decreInventory() {
        log.info("InventoryServiceFallback  降级了...");
        return "openFeign降级了";
    }

    @Override
    public Boolean deduct(String commodityCode, Integer count) {
        log.info("deduct InventoryServiceFallback  降级了...");

        return false;
    }
}
